<!DOCTYPE html>
<html>
<head>
  <title>数据分析</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  {% comment %} <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script> {% endcomment %}
  {% load static %}
  <link rel="stylesheet" href="{% static 'datapanel/css/bootstrap.min.css' %}">
  <script src="{% static 'datapanel/js/jquery.min.js' %}"></script>
  <script src="{% static 'datapanel/js/bootstrap.bundle.min.js' %}"></script>
  <style>
    * {
      box-sizing: border-box;
      font-family: Helvetica, "Microsoft Yahei", Arial, sans-serif;
    } 
    ul.pagination > li {
      padding: 5px; 
      padding-left: 10px; 
      padding-right: 10px;     
      border: solid 1px #ccc; 
    }
    .th-lg {
      width: 10rem;
    }
    .th-sm {
      width: 4rem;
    }
    .img-product:hover{
      height: 350px;
      width: 300px;
    }
  </style>
</head>
<body>

<nav class="navbar navbar-expand-sm bg-dark navbar-dark d-flex ">
  <a class="navbar-brand" href="#">
    <img src="{% static 'datapanel/icon/logo.png' %}" width="25" height="25" alt="">
  </a>
  <!-- Links -->
  <ul class="navbar-nav">
    <li class="nav-item">
      <a class="nav-link" href="{% url 'datapanel:products_filter' %}">查看商品数据</a>
    </li>
    <li class="nav-item">
      <a class="nav-link" href="{% url 'datapanel:chart_seller' %}">可视化分析</a>
    </li>

    <!-- Dropdown -->
    <li class="nav-item dropdown">
      <a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
        采集任务
      </a>
      <div class="dropdown-menu">        
        <a class="dropdown-item" href="{% url 'datapanel:tasks_list' %}">查询</a>
        <a class="dropdown-item" href="{% url 'datapanel:tasks_create' %}">新建采集任务</a>
      </div>
    </li>
  </ul>
  <span class="navbar-text mx-auto text-white">
    Amazon 数据采集系统
  </span>
  <span class="ml-auto text-info">
  {% if user.is_authenticated %}
   用户: {{ user.username }} &nbsp; &nbsp; 
   <a href="{% url 'datapanel:logout' %}" class="btn btn-sm btn-outline-info" >登出</a>
  {% else %}
    <a href="{% url 'datapanel:login' %}" class="btn btn-sm btn-outline-info" >请登录</a>
  {% endif %} 
   
  </span>
</nav>
<br>
  
<div class="container-fluid mx-1">
    {% block content %}   
	    定制内容
    {% endblock content%}
</div>
<footer class="my-5 pt-5 text-muted text-center text-small">
  <p class="mb-1">StarLink</p>
  <ul class="list-inline">
    <li class="list-inline-item"><a href="#" __uv-attr-href="#">Privacy</a></li>
    <li class="list-inline-item"><a href="#" __uv-attr-href="#">Terms</a></li>
    <li class="list-inline-item"><a href="#" __uv-attr-href="#">Support</a></li>
  </ul>
</footer>
</body>
</html>